{include file="public/head"}
<style>
    .m-cell {
        background-color: #FFF;
        position: relative;
        z-index: 1;
        margin-bottom: .35rem;
        height: 3rem;
        line-height: 3rem;
    }
</style>
<body style="background:#eee">

<header class="aui-header-default aui-header-fixed aui-header-bg">
    <a href="{:url('Index/App')}" class="aui-header-item">
        <i class="aui-icon aui-icon-back-white"></i>
    </a>
    <div class="aui-header-center aui-header-center-clear">
        <div class="aui-header-center-logo">
            <div class="aui-car-white-Typeface" style="color:black;font-weight: bold;">我要反馈</div>
        </div>
    </div>
    <a href="{:url('User/Feedback')}" class="aui-header-item-icon" style="min-width:0;font-size:14px">
       记录
    </a>
</header>


<section class="aui-myOrder-content">
    <div class="aui-Address-box">
        <p>
            <textarea class="aui-Address-box-text" id="content" placeholder="填写您的反馈信息" rows="10"></textarea>
        </p>

    </div>
    <div class="aui-out">
        <a href="javascript:" class="red-color" style="color:#fff" id="add">提交反馈</a>
    </div>
</section>


<script type="text/javascript" src="__STATIC__/User/js/jquery.min.js"></script>
<script>
    $('#add').on('click',function () {
        var content = $('#content').val();

        if(content == ""){
            alert('请填写您的反馈信息！');
            return false;
        }

        $.ajax({
            type:"POST",
            url:"{:url('User/FeedbackAdd')}",
            data:{
                content:content
            },
            dataType:"json",
            success:function(data){
                alert(data.message);
                if(data.status == 1){
                    window.location.href="{:url('User/Feedback')}";
                }
            }
        })
    })
</script>

</body>
</html>